Integrand size = 22, antiderivative size = 298 \[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\frac {\sqrt {c+a^2 c x^2}}{8 a^3}-\frac {\left (c+a^2 c x^2\right )^{3/2}}{12 a^3 c}+\frac {x \sqrt {c+a^2 c x^2} \arctan (a x)}{8 a^2}+\frac {1}{4} x^3 \sqrt {c+a^2 c x^2} \arctan (a x)+\frac {i c \sqrt {1+a^2 x^2} \arctan (a x) \arctan \left (\frac {\sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{4 a^3 \sqrt {c+a^2 c x^2}}-\frac {i c \sqrt {1+a^2 x^2} \operatorname {PolyLog}\left (2,-\frac {i \sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {c+a^2 c x^2}}+\frac {i c \sqrt {1+a^2 x^2} \operatorname {PolyLog}\left (2,\frac {i \sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {c+a^2 c x^2}} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 298, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {5066, 5072, 267, 5010, 5006, 272, 45} \[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\frac {x \arctan (a x) \sqrt {a^2 c x^2+c}}{8 a^2}+\frac {1}{4} x^3 \arctan (a x) \sqrt {a^2 c x^2+c}+\frac {i c \sqrt {a^2 x^2+1} \arctan (a x) \arctan \left (\frac {\sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{4 a^3 \sqrt {a^2 c x^2+c}}-\frac {i c \sqrt {a^2 x^2+1} \operatorname {PolyLog}\left (2,-\frac {i \sqrt {i a x+1}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {a^2 c x^2+c}}+\frac {i c \sqrt {a^2 x^2+1} \operatorname {PolyLog}\left (2,\frac {i \sqrt {i a x+1}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {a^2 c x^2+c}}-\frac {\left (a^2 c x^2+c\right )^{3/2}}{12 a^3 c}+\frac {\sqrt {a^2 c x^2+c}}{8 a^3} \]
[In]
[Out]
Rule 45
Rule 267
Rule 272
Rule 5006
Rule 5010
Rule 5066
Rule 5072
Rubi steps \begin{align*} \text {integral}& = \frac {1}{4} x^3 \sqrt {c+a^2 c x^2} \arctan (a x)+\frac {1}{4} c \int \frac {x^2 \arctan (a x)}{\sqrt {c+a^2 c x^2}} \, dx-\frac {1}{4} (a c) \int \frac {x^3}{\sqrt {c+a^2 c x^2}} \, dx \\ & = \frac {x \sqrt {c+a^2 c x^2} \arctan (a x)}{8 a^2}+\frac {1}{4} x^3 \sqrt {c+a^2 c x^2} \arctan (a x)-\frac {c \int \frac {\arctan (a x)}{\sqrt {c+a^2 c x^2}} \, dx}{8 a^2}-\frac {c \int \frac {x}{\sqrt {c+a^2 c x^2}} \, dx}{8 a}-\frac {1}{8} (a c) \text {Subst}\left (\int \frac {x}{\sqrt {c+a^2 c x}} \, dx,x,x^2\right ) \\ & = -\frac {\sqrt {c+a^2 c x^2}}{8 a^3}+\frac {x \sqrt {c+a^2 c x^2} \arctan (a x)}{8 a^2}+\frac {1}{4} x^3 \sqrt {c+a^2 c x^2} \arctan (a x)-\frac {1}{8} (a c) \text {Subst}\left (\int \left (-\frac {1}{a^2 \sqrt {c+a^2 c x}}+\frac {\sqrt {c+a^2 c x}}{a^2 c}\right ) \, dx,x,x^2\right )-\frac {\left (c \sqrt {1+a^2 x^2}\right ) \int \frac {\arctan (a x)}{\sqrt {1+a^2 x^2}} \, dx}{8 a^2 \sqrt {c+a^2 c x^2}} \\ & = \frac {\sqrt {c+a^2 c x^2}}{8 a^3}-\frac {\left (c+a^2 c x^2\right )^{3/2}}{12 a^3 c}+\frac {x \sqrt {c+a^2 c x^2} \arctan (a x)}{8 a^2}+\frac {1}{4} x^3 \sqrt {c+a^2 c x^2} \arctan (a x)+\frac {i c \sqrt {1+a^2 x^2} \arctan (a x) \arctan \left (\frac {\sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{4 a^3 \sqrt {c+a^2 c x^2}}-\frac {i c \sqrt {1+a^2 x^2} \operatorname {PolyLog}\left (2,-\frac {i \sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {c+a^2 c x^2}}+\frac {i c \sqrt {1+a^2 x^2} \operatorname {PolyLog}\left (2,\frac {i \sqrt {1+i a x}}{\sqrt {1-i a x}}\right )}{8 a^3 \sqrt {c+a^2 c x^2}} \\ \end{align*}
Time = 2.53 (sec) , antiderivative size = 278, normalized size of antiderivative = 0.93 \[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\frac {\sqrt {c \left (1+a^2 x^2\right )} \left (-6 i \operatorname {PolyLog}\left (2,-i e^{i \arctan (a x)}\right )+6 i \operatorname {PolyLog}\left (2,i e^{i \arctan (a x)}\right )-\frac {1}{4} \left (1+a^2 x^2\right )^2 \left (-\frac {2}{\sqrt {1+a^2 x^2}}-6 \cos (3 \arctan (a x))+3 \arctan (a x) \left (-\frac {14 a x}{\sqrt {1+a^2 x^2}}+3 \log \left (1-i e^{i \arctan (a x)}\right )+4 \cos (2 \arctan (a x)) \left (\log \left (1-i e^{i \arctan (a x)}\right )-\log \left (1+i e^{i \arctan (a x)}\right )\right )+\cos (4 \arctan (a x)) \left (\log \left (1-i e^{i \arctan (a x)}\right )-\log \left (1+i e^{i \arctan (a x)}\right )\right )-3 \log \left (1+i e^{i \arctan (a x)}\right )+2 \sin (3 \arctan (a x))\right )\right )\right )}{48 a^3 \sqrt {1+a^2 x^2}} \]
[In]
[Out]
Time = 0.46 (sec) , antiderivative size = 199, normalized size of antiderivative = 0.67
method | result | size |
default | \(\frac {\sqrt {c \left (a x -i\right ) \left (a x +i\right )}\, \left (6 \arctan \left (a x \right ) x^{3} a^{3}-2 a^{2} x^{2}+3 x \arctan \left (a x \right ) a +1\right )}{24 a^{3}}+\frac {\sqrt {c \left (a x -i\right ) \left (a x +i\right )}\, \left (\arctan \left (a x \right ) \ln \left (1+\frac {i \left (i a x +1\right )}{\sqrt {a^{2} x^{2}+1}}\right )-\arctan \left (a x \right ) \ln \left (1-\frac {i \left (i a x +1\right )}{\sqrt {a^{2} x^{2}+1}}\right )-i \operatorname {dilog}\left (1+\frac {i \left (i a x +1\right )}{\sqrt {a^{2} x^{2}+1}}\right )+i \operatorname {dilog}\left (1-\frac {i \left (i a x +1\right )}{\sqrt {a^{2} x^{2}+1}}\right )\right )}{8 a^{3} \sqrt {a^{2} x^{2}+1}}\) | \(199\) |
[In]
[Out]
\[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\int { \sqrt {a^{2} c x^{2} + c} x^{2} \arctan \left (a x\right ) \,d x } \]
[In]
[Out]
\[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\int x^{2} \sqrt {c \left (a^{2} x^{2} + 1\right )} \operatorname {atan}{\left (a x \right )}\, dx \]
[In]
[Out]
\[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\int { \sqrt {a^{2} c x^{2} + c} x^{2} \arctan \left (a x\right ) \,d x } \]
[In]
[Out]
\[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\int { \sqrt {a^{2} c x^{2} + c} x^{2} \arctan \left (a x\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int x^2 \sqrt {c+a^2 c x^2} \arctan (a x) \, dx=\int x^2\,\mathrm {atan}\left (a\,x\right )\,\sqrt {c\,a^2\,x^2+c} \,d x \]
[In]
[Out]